package edu.guet.server.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import edu.guet.server.service.TestPaperService;
import edu.guet.server.utils.ResultAPI;

@RestController
@RequestMapping("/testPaper")
public class TestPaperController {
    @Autowired
    TestPaperService testPaperService;
    
    @RequestMapping("/selectTestPaperById")
    public ResultAPI selectTestPaperById(@RequestParam("test_id") int test_id){
        return ResultAPI.success(testPaperService.selectTestPaperById(test_id));
    }
}
